package com.heima;

import com.heima.pojo.User;
import com.heima.pojo.UserConfig;
import com.heima.selecter.MyImportSelecter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigurationImportSelector;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;


@SpringBootApplication
/*@Import(User.class)*/
/*@Import(UserConfig.class)*/
/*@Import(MyImportSelecter.class)*/
@Import(AutoConfigurationImportSelector.class)
public class Day64SpringBoot07Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Day64SpringBoot07Application.class, args);
        Object user = context.getBean("user");
        System.out.println(user);

    }

}
